package com.san.metadata.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.san.metadata.dao.BaseNaturalPersonManager;
import com.san.metadata.domain.BaseNaturalPersonDO;
import com.san.metadata.service.BaseNaturalPersonService;
import com.san.metadata.vo.BaseNaturalPersonVO;

/**
 * 自然人基础辨识信息服务实现
 * 
 * @author xiangyz
 *
 */
@Service
public class BaseNaturalPersonServiceImpl implements BaseNaturalPersonService {

	@Autowired
	BaseNaturalPersonManager baseNaturalPersonManager;


	@Override
	public List<BaseNaturalPersonDO> getNaturalPerson(String name, String idCard) throws Exception {
		return baseNaturalPersonManager.getNaturalPerson(name, idCard);
	}


	@Override
	public int batchSave(List<BaseNaturalPersonVO> list) throws Exception {
		return baseNaturalPersonManager.batchSave(list);
	}

}
